<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.4.11/index.js"></script>
  <script src="https://cdn.staticfile.org/echarts/4.2.1-rc1/echarts.min.js"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.4.11/theme-chalk/index.css" />
  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue.js"></script>

</head>

<body>
  <div id="app">
    <avue-echart-flop width="500" height="280" :option='option' :data="data"></avue-echart-flop>
    <avue-echart-flop width="400" height="280" :option='option1' :data="data1"></avue-echart-flop>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        data: [{
          "prefixText": "内蒙古总人数",
          "value": 123.11,
          "suffixText": '人',
        }, {
          "prefixText": "内蒙古总人数",
          "value": 123.11,
          "suffixText": '人',
        }, {
          "prefixText": "内蒙古总人数",
          "value": 123.11,
          "suffixText": '人',
        }],
        data1: [{
          "value": 123.11,
        }, {
          "value": 123.11,
        }],
        option: {
          "span": 3,
          "decimals": 2,
          "whole": true,
          "padding": 12,
          "textAlign": 'left',
          "splity": 5,
          "splitx": 10,
          "fontSize": 28,
          "prefixSplity": 4,
          "prefixText": "内蒙古总人数",
          "prefixFontSize": 13,
          "backgroundColor": "#F56C6C",
          "suffixText": '人',
          "suffixInline": true,
          "suffixSplitx": 10,
          "suffixFontSize": 18,
        },
        option1: {
          "type": "img",
          "splity": 30,
          "splitx": 20,
          "suffixText": "",
          "suffixTextAlign": "",
          "suffixSplit": '',
          "suffixColor": "",
          "suffixFontSize": '',
          "borderColor": "#333",
          "borderWidth": 3,
          "backgroundBorder": "http://data.avuejs.com/img/border/border1.png",
          "fontSize": 28,
          "fontWeight": "normal",
          "backgroundColor": "",
          "color": "#333"
        }

      }
    }
  })

</script>

</html>